﻿<Application
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:Shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
    x:Class="TexasHoldemCalculator.App" >
    
    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <Shell:PhoneApplicationService 
			Launching="ApplicationLaunching" 
            Closing="ApplicationClosing" 
			Activated="ApplicationActivated" 
            Deactivated="ApplicationDeactivated" />
    </Application.ApplicationLifetimeObjects>
    
	<!-- Resources for following the Windows Phone design guidelines -->
	<Application.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/DarkThemeStyle.xaml" />
                <ResourceDictionary Source="Resources/ControlStyle.xaml" />
                <ResourceDictionary Source="Resources/Converter.xaml" />
                <ResourceDictionary Source="Resources/DataStyle.xaml" />
                <ResourceDictionary Source="Resources/LightThemeStyle.xaml" />
                <ResourceDictionary Source="Resources/PageTransitions.xaml" />
                <ResourceDictionary Source="Resources/BorderTransitions.xaml" />
                <ResourceDictionary Source="Resources/ControlTemplates.xaml" />
                
                <!-- View Specific Resource Dictionary -->
                <ResourceDictionary Source="Resources/StartingHandsViewStyles.xaml" />
                <ResourceDictionary Source="Resources/AnimationStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>

            <Shell:ApplicationBar x:Key="GlobalApplicationBar" IsVisible="False" IsMenuEnabled="True">
                <Shell:ApplicationBar.MenuItems>
                    <Shell:ApplicationBarMenuItem x:Name="InfoMenuItem" Text="About" Click="AboutMenuItemClick" />
                    <Shell:ApplicationBarMenuItem x:Name="HoleOddsMenuItem" Text="Hole Odds" Click="HoleOddsMenuItemClick" />
                    <Shell:ApplicationBarMenuItem x:Name="SettingsMenuItem" Text="Settings" Click="OptionsMenuItemClick" />
                </Shell:ApplicationBar.MenuItems>
                <Shell:ApplicationBarIconButton x:Name="CalculaterAppIconButton" IconUri="Images/Icons/256/Blue.Calculator.png" Text="Main" Click="CalculaterMenuItemClick" />
                <Shell:ApplicationBarIconButton x:Name="HistoryAppIconButton" IconUri="Images/Icons/256/Blue.Folder.png" Text="History" Click="HistoryMenuItemClick" />
                <Shell:ApplicationBarIconButton x:Name="StatisticsAppIconButton" IconUri="Images/Icons/256/Blue.Stats.png" Text="Stats" Click="StatisticsMenuItemClick" />
                <Shell:ApplicationBarIconButton x:Name="StartingHandsAppIconButton" IconUri="Images/Icons/256/Starting.Hands.png" Text="Starting Hands" Click="StartingHandsSelectionMenuItemClick" />
            </Shell:ApplicationBar>

        </ResourceDictionary>
        
    </Application.Resources>

</Application>